package com.socket;


import java.io.BufferedReader;  
import java.io.IOException;  
import java.io.InputStreamReader;  
import java.io.PrintWriter;  
import java.net.Socket;  
import java.net.UnknownHostException;  
/**
 * socket
 * @author DingQingbo
 *
 */
public class Client {  
  Socket client;  
  PrintWriter pw;  
  public Client() throws UnknownHostException, IOException {  
//    client=new Socket("Socket服务器IP",7777);  
      client=new Socket("192.168.10.75",7777);  
      pw=new PrintWriter(client.getOutputStream());  
      BufferedReader br=new BufferedReader(new InputStreamReader(System.in));  
      pw.write(br.readLine());  
      pw.close();  
      br.close();  
  }  
  public static void main(String[] args) {  
      try {  
          new Client();  
      } catch (UnknownHostException e) {  
          e.printStackTrace();  
      } catch (IOException e) {  
          e.printStackTrace();  
      }  
  }  
}  